home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Macintosh Easy Open / Documentation / Developer / PowerPC / LowerToUpperCase.make < prev    next >
Encoding:
Text File  |  1995-08-23  |  2.4 KB  |  97 lines  |  [TEXT/MPS ]

  1. #
  2. #   LowerToUpperCase.make
  3. #
  4. #    MPW makefile for LowerToUpperCase translation extension
  5. #
  6. #    Copyright © 1994, Apple Computer, Inc.  All rights reserved.
  7. #
  8. #
  9. #    Modified from LowerToUpperCaseScrap
  10. #    R.Silva 8/23/95
  11. #
  12. AppName  = LowerToUpperCase
  13. Creator = 'M&Ms'
  14. Type    = 'thng'
  15.  
  16. SymOpt = on   # Set to "on" to build a debuggable version.
  17.  
  18. Source_Folder = :
  19.  
  20. Objects = :Objects:
  21.  
  22. {Objects} ƒ {Source_Folder}
  23.  
  24. Sources = LowerToUpperCase.c
  25.           
  26. Resources = {AppName}.r ∂
  27.             {AppName}.r1
  28.  
  29. PPC_Objects =     {Objects}{AppName}.c.ppc.o
  30.                 
  31. 68K_Objects =     {Objects}{AppName}.c.68k.o
  32.                 
  33. PPCC_Options =     -w conformance -appleext on -sym {SymOpt}
  34.  
  35. C_Options = -i "{PPCCIncludes}" -sym {SymOpt}  # Use universal headers for 68K build.
  36.  
  37. R_Options = -i "{CIncludes}"
  38.  
  39. PPC_Libraries =    "{PPCLibraries}"InterfaceLib.xcoff    ∂
  40.                 "{PPCLibraries}"StdCLib.xcoff        ∂
  41.                 "{PPCLibraries}"StdCRuntime.o        ∂
  42.                 "{PPCLibraries}"PPCCRuntime.o        ∂
  43.                 "{PPCLibraries}"Translation
  44.                 
  45. 68K_Libraries = "{Libraries}"Runtime.o  ∂
  46.                 "{Libraries}"Interface.o
  47.  
  48. PPC_LibEquates =     -l InterfaceLib.xcoff=InterfaceLib ∂
  49.                     -l StdCLib.xcoff=StdCLib ∂
  50.                     -l MathLib.xcoff=MathLib
  51.                                         
  52. Makefile =        {AppName}.make
  53.  
  54. C =                C
  55.  
  56. PEF_Options = -b -x
  57.  
  58. PPCC = PPCC
  59.  
  60. {AppName} ƒ {Objects}{AppName}.pef {Objects}{AppName}.68K
  61.     Rez {AppName}.r -a -i {Objects} -o {AppName} {R_Options}
  62.     SetFile {AppName} -a Bi -t thng -c M&Ms 
  63.     
  64. {Objects}{AppName}.pef ƒƒ {Objects}{AppName}.xcoff {Resources}
  65.     makepef  {PEF_Options}                         ∂
  66.              {Objects}{AppName}.xcoff             ∂
  67.              {PPC_LibEquates}                     ∂
  68.              -o {Targ}                    
  69.     Rez {AppName}.r1 -a -o {Targ}
  70.             
  71. {Objects}{AppName}.xcoff ƒƒ {PPC_Objects}
  72.         PPCLink    "{PPCLibraries}"TranslationExtInterface.xcoff    ∂
  73.         {PPC_Objects}                                            ∂
  74.         {PPC_Libraries}                                             ∂
  75.         -sym {SymOpt}                                             ∂
  76.         -outputFormat  xcoff                                     ∂
  77.         -main TranslateEntry                                     ∂
  78.         -o {Targ}
  79.  
  80. {Objects}{AppName}.68K ƒƒ {68K_Objects} {Resources}
  81.     Link -d -t rsrc -c RSED                         ∂
  82.         "{Libraries}"TranslateExtensionInterface.o    ∂
  83.         {68K_Objects}                                 ∂
  84.         {68K_Libraries}                                ∂
  85.         -sym {SymOpt}                                ∂
  86.         -m TRANSLATEENTRY                             ∂
  87.         -rn -sg MergeSegments -t rsrc -c RSED        ∂
  88.         -rt xlat=128                                ∂
  89.         -o {Targ}
  90.  
  91. .c.ppc.o    ƒ    .c {Makefile}        # Whenever the Makefile changes, all .o's get built.
  92.     {PPCC} {PPCC_Options} {default}.c -o {Targ}
  93.     
  94. .c.68k.o    ƒ    .c {Makefile}        # Whenever the Makefile changes, all .o's get built.
  95.     {C} {C_Options} {default}.c -o {Targ}
  96.  
  97.